Optimal. Leaf size=148 \[ \frac{\left (3 a^2+12 a b+8 b^2\right ) \tanh ^{-1}\left (\frac{\sqrt{b} \tan ^2(x)}{\sqrt{a+b \tan ^4(x)}}\right )}{16 \sqrt{b}}-\frac{1}{24} \left (4-3 \tan ^2(x)\right ) \left (a+b \tan ^4(x)\right )^{3/2}-\frac{1}{16} \left (8 (a+b)-(3 a+4 b) \tan ^2(x)\right ) \sqrt{a+b \tan ^4(x)}+\frac{1}{2} (a+b)^{3/2} \tanh ^{-1}\left (\frac{a-b \tan ^2(x)}{\sqrt{a+b} \sqrt{a+b \tan ^4(x)}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.31002, antiderivative size = 148, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 7, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.412, Rules used = {3670, 1252, 815, 844, 217, 206, 725} \[ \frac{\left (3 a^2+12 a b+8 b^2\right ) \tanh ^{-1}\left (\frac{\sqrt{b} \tan ^2(x)}{\sqrt{a+b \tan ^4(x)}}\right )}{16 \sqrt{b}}-\frac{1}{24} \left (4-3 \tan ^2(x)\right ) \left (a+b \tan ^4(x)\right )^{3/2}-\frac{1}{16} \left (8 (a+b)-(3 a+4 b) \tan ^2(x)\right ) \sqrt{a+b \tan ^4(x)}+\frac{1}{2} (a+b)^{3/2} \tanh ^{-1}\left (\frac{a-b \tan ^2(x)}{\sqrt{a+b} \sqrt{a+b \tan ^4(x)}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3670
Rule 1252
Rule 815
Rule 844
Rule 217
Rule 206
Rule 725
Rubi steps
\begin{align*} \int \tan ^3(x) \left (a+b \tan ^4(x)\right )^{3/2} \, dx &=\operatorname{Subst}\left (\int \frac{x^3 \left (a+b x^4\right )^{3/2}}{1+x^2} \, dx,x,\tan (x)\right )\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{x \left (a+b x^2\right )^{3/2}}{1+x} \, dx,x,\tan ^2(x)\right )\\ &=-\frac{1}{24} \left (4-3 \tan ^2(x)\right ) \left (a+b \tan ^4(x)\right )^{3/2}+\frac{\operatorname{Subst}\left (\int \frac{(-a b+b (3 a+4 b) x) \sqrt{a+b x^2}}{1+x} \, dx,x,\tan ^2(x)\right )}{8 b}\\ &=-\frac{1}{16} \left (8 (a+b)-(3 a+4 b) \tan ^2(x)\right ) \sqrt{a+b \tan ^4(x)}-\frac{1}{24} \left (4-3 \tan ^2(x)\right ) \left (a+b \tan ^4(x)\right )^{3/2}+\frac{\operatorname{Subst}\left (\int \frac{-a b^2 (5 a+4 b)+b^2 \left (3 a^2+12 a b+8 b^2\right ) x}{(1+x) \sqrt{a+b x^2}} \, dx,x,\tan ^2(x)\right )}{16 b^2}\\ &=-\frac{1}{16} \left (8 (a+b)-(3 a+4 b) \tan ^2(x)\right ) \sqrt{a+b \tan ^4(x)}-\frac{1}{24} \left (4-3 \tan ^2(x)\right ) \left (a+b \tan ^4(x)\right )^{3/2}-\frac{1}{2} (a+b)^2 \operatorname{Subst}\left (\int \frac{1}{(1+x) \sqrt{a+b x^2}} \, dx,x,\tan ^2(x)\right )+\frac{1}{16} \left (3 a^2+12 a b+8 b^2\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{a+b x^2}} \, dx,x,\tan ^2(x)\right )\\ &=-\frac{1}{16} \left (8 (a+b)-(3 a+4 b) \tan ^2(x)\right ) \sqrt{a+b \tan ^4(x)}-\frac{1}{24} \left (4-3 \tan ^2(x)\right ) \left (a+b \tan ^4(x)\right )^{3/2}+\frac{1}{2} (a+b)^2 \operatorname{Subst}\left (\int \frac{1}{a+b-x^2} \, dx,x,\frac{a-b \tan ^2(x)}{\sqrt{a+b \tan ^4(x)}}\right )+\frac{1}{16} \left (3 a^2+12 a b+8 b^2\right ) \operatorname{Subst}\left (\int \frac{1}{1-b x^2} \, dx,x,\frac{\tan ^2(x)}{\sqrt{a+b \tan ^4(x)}}\right )\\ &=\frac{\left (3 a^2+12 a b+8 b^2\right ) \tanh ^{-1}\left (\frac{\sqrt{b} \tan ^2(x)}{\sqrt{a+b \tan ^4(x)}}\right )}{16 \sqrt{b}}+\frac{1}{2} (a+b)^{3/2} \tanh ^{-1}\left (\frac{a-b \tan ^2(x)}{\sqrt{a+b} \sqrt{a+b \tan ^4(x)}}\right )-\frac{1}{16} \left (8 (a+b)-(3 a+4 b) \tan ^2(x)\right ) \sqrt{a+b \tan ^4(x)}-\frac{1}{24} \left (4-3 \tan ^2(x)\right ) \left (a+b \tan ^4(x)\right )^{3/2}\\ \end{align*}
Mathematica [A] time = 6.04437, size = 189, normalized size = 1.28 \[ \frac{1}{48} \left (\sqrt{a+b \tan ^4(x)} \left (3 (5 a+4 b) \tan ^2(x)-8 (4 a+3 b)+6 b \tan ^6(x)-8 b \tan ^4(x)\right )+24 (a+b)^{3/2} \tanh ^{-1}\left (\frac{a-b \tan ^2(x)}{\sqrt{a+b} \sqrt{a+b \tan ^4(x)}}\right )+24 \sqrt{b} (a+b) \tanh ^{-1}\left (\frac{\sqrt{b} \tan ^2(x)}{\sqrt{a+b \tan ^4(x)}}\right )+\frac{3 \sqrt{a} (3 a+4 b) \sqrt{a+b \tan ^4(x)} \sinh ^{-1}\left (\frac{\sqrt{b} \tan ^2(x)}{\sqrt{a}}\right )}{\sqrt{b} \sqrt{\frac{b \tan ^4(x)}{a}+1}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.058, size = 374, normalized size = 2.5 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \tan \left (x\right )^{4} + a\right )}^{\frac{3}{2}} \tan \left (x\right )^{3}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 4.99827, size = 1937, normalized size = 13.09 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \tan ^{4}{\left (x \right )}\right )^{\frac{3}{2}} \tan ^{3}{\left (x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \tan \left (x\right )^{4} + a\right )}^{\frac{3}{2}} \tan \left (x\right )^{3}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]